<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php 
//此处的header是admin模块下的header，原因是图片上传窗口原本要有admin类下的header方法
include $this->tpl('header', 'formguide');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link href="<?php echo CSS_PATH;?>table_form.css" rel="stylesheet" type="text/css" />
<link href="<?php echo CSS_PATH;?>dialog.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo JS_PATH;?>dialog.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH;?>dialog.js"></script>
<title>广东机电职业技术学院汽车学院信息收集系统</title>
<style>
html,body,div,h2,input,span,label,p,select,img,tr,td,a{
    margin: 0;
    padding: 0;
}
body{
    margin: 0 auto;
    font-family:"微软雅黑","宋体", Arial, Helvetica, sans-serif; 
    font-size:15px;
    /*background: url(/qcxy/statics/img/bg.png) repeat-x;*/
}
.sr_body,.sr_head,.sr_main,.sr_footer{
    width: 960px;
    margin: 0 auto;
}

/*头部*/
.sr_head{
    width: 962px;
    position: relative;
    background-color: #2d89ef;
    height: 120px;
    border-bottom: 1px solid #2d89ef;
    box-shadow: 0 1px 5px #6CACED;
}

#title{
    padding-top:35px;
    padding-left: 20%;
    color: #fff; 
}
#title h1{
    font-size:30px;
}
.sr_main{
    border-left: 1px dotted #00ccff;
    border-right: 1px dotted #00ccff;
    background: #fff;
}

.sr_content{
    padding: 10px 25px;
}

.box span{
    text-indent: 2em;
}

.box{
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
}
.logindisplay{
    color: #fff;
    position: absolute;
    float: right;
    top: 10px;
    right: 20px;
}

.logindisplay a{
    text-decoration: none;
    color: #eee;
    padding: 3px;
    border: 1px solid #ddd;
}

.logindisplay a:hover{
    color: #c40000;
}

.one label{
    display: block;
    width: 100px;
    float: left;
    text-align: right;
}
 .three label{
    /*上传附件*/
    display: block;
    width: 120px;
    float: left;
    text-align: right;
 }
#myform div{
    margin: 10px;
}


#div3{
    
    padding-top: 0px;
    padding-bottom: 5px;
    border-bottom:0px solid #ccc; 
}

#myform em{
    color: red;
}

#submitbutton{
    text-align: center;
}

.sr_footer{
    padding: 10px 0;
    width: 962px;
    position: relative;
    background-color: #2d89ef;
    clear: both;
}
.sr_footer p{
    color: #eee;
    text-align: center;
}
.que{
    border-bottom:1px dashed #ccc;
    padding-bottom: 5px;
}
.que label{
    padding: 0 10px;
}
</style>
</head>
<body>
    <div class="clr sr_body">
        <div class="sr_head">
            <div class="logindisplay">
                <strong><?php  echo $number;?></strong>&nbsp;
                <strong><?php  echo $username;?></strong>
                <!-- <strong><?php  echo $major;?></strong>&nbsp; -->
                <strong>批次：<?php  echo $modeldata['batch'];?></strong>&nbsp;
                [<a href="<?php echo APP_PATH;?>index.php?m=formguide&c=index&a=teacher_changepassword&number=<?php  echo $number;?>&batch=<?php  echo $modeldata['batch'];?>">修改密码</a>]
                [<a href="<?php echo APP_PATH;?>index.php?m=formguide&c=index&a=loginout&number=<?php  echo $number;?>">退出</a>]
                </div>
                <div id="title">
                    <h1><?php  echo $modeldata['name'];?></h1>
                </div>
        </div>
        <div class="sr_main">
            <div class="sr_content">
            <div class="desc box">
                <?php  echo $modeldata['description'];?>
            </div>
<form method="post" action="<?php echo APP_PATH;?>index.php?m=formguide&c=index&a=teacher_show_update&formid=<?php echo $formid;?>&siteid=<?php echo $this->siteid;?>" name="myform" id="myform">
<input type="hidden" name="formid" value="<?php echo $formid;?>" >
<input type="hidden" name="did" value="<?php echo $did;?>" >
<div>
        <?php $n=1; if(is_array($forminfos_fields)) foreach($forminfos_fields AS $field => $info) { ?>
            <div  class="que">
                        <label>
                            <?php if($info['star']) { ?> <font color="red">*</font><?php } ?> <?php echo $info['name'];?>
                        </label>
                        <?php echo htmlspecialchars_decode($info['form']);?>  <?php echo $info['tips']?>
            </div>
        <?php $n++;}unset($n); ?>

    <div>
      <tr>
      <td>验证码：</td>
      <td><input type="text" name="code"></td>
      <?php echo form::checkcode('code_img');?>  
      </tr>       
    </div> 
    
    <div>
     <p id="submitbutton"><input <?php if($no_allowed) { ?> disabled=""<?php } ?> name="dosubmit" id="dosubmit" type="submit"></p>
     </form>
    </div>  
</div>
</div>
</div>
</body>
<div class="sr_footer">
    <p>广东机电职业技术学院汽车学院 All Rights Reserved</p>
</div>
</div>
</body>
<!-- <?php include template('content', 'footer'); ?> -->
</html>